<?php echo form_open('transactions/update'); ?>

  <?php foreach($result as $row) { ?>
	<p>TID: <input type="text" name="id" id="id" value="<?php echo $row->id; ?>"></p>
	<p>Commoity ID: <input type="text" name="commodity_id" id="commodity_id" value="<?php echo $row->commodity_id; ?>"></p>
	<p>User ID: <input type="text" name="user_id" id="user_id" value="<?php echo $row->user_id; ?>"></p>
	<p><?php echo form_submit('update','Update'); ?></p>
   <?php } ?>
	<?php echo form_close(); ?>
	<?php echo validation_errors(); ?>